home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / dkbsrc.zip / IBM.MAK < prev    next >
Makefile  |  1991-05-10  |  4KB  |  122 lines

  1. # IBM Makefile for DKB Ray Tracing Program by David Buck and Aaron Collins
  2. # This file is released to the public domain.
  3. #
  4. # Note for the IBM Version:
  5. # Uses system environment variable LIB for the linker's .LIB file path.
  6. # (Example:  Set LIB=C:\LIB)  if you change this the two .LNK files will also
  7. # need to be changed as well.  The system environment variable CMODEL also
  8. # may be defined for the memory model of the compiler.  DKBTrace requires
  9. # the "Large" memory model.  (Example Set CMODEL=l)  If you don't want to
  10. # use the DOS environment variables, uncomment the following two lines:
  11. #
  12. #
  13. # MAKE Macros and Such...
  14. #
  15.  
  16. #CMODEL    =L
  17. #LIB    =c:\lib
  18. CC    =cl
  19. OBJ    =obj
  20. MACHINE_OBJ    = ibm.$(OBJ)
  21.  
  22. LINKER    =link /EXEPACK /PACKC /FARC /STACK:12288
  23.  
  24. # Uncomment for 8086/8088 instruction set usage
  25. #
  26. #CFLAGS    =/A$(CMODEL) /Gmsr /FPi /H32 /c /J
  27.  
  28. # Uncomment for 80186/80268 (incl. V20!) instruction set usage    [/Gmsr2]
  29. #
  30. CFLAGS    =/A$(CMODEL) /Gmsr2 /FPi87 /H32 /c /J
  31.  
  32. # If you have OS/2 to compile under, fix directory name and add this option
  33. # to CFLAGS above...
  34. #
  35. # /B2 C:\msc\c2l.exe
  36. #
  37.  
  38. # MS's NMAKE implicit rules for making an .OBJ file from a .C file...
  39. #
  40. .c.obj :
  41.  $(CC) $(CFLAGS) /Oaxz $*.c
  42.  
  43. # The option:
  44. #
  45. # /Oaxz
  46. #
  47. # Is purported by Microsoft to produce the fastest possible code.  In fact it
  48. # will break the RGB->HSV->RGB routines in IBM.C, if using the 8087 emulator.
  49. # So, for IBM.C we are using:
  50. #
  51. # /Ogiltaz
  52. #
  53. # This optimization string works for IBM.C and should then have worked for all
  54. # files, but, somehow, it BREAKS the compiler! (Internal compiler error C1001
  55. # on TEXTURE.C!!)  Oh, well...
  56. #
  57.  
  58. DKBOBJS = trace.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ) \
  59.       objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ) \
  60.       prioq.$(OBJ) texture.$(OBJ) matrices.$(OBJ) csg.$(OBJ)  \
  61.       colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ) planes.$(OBJ) iff.$(OBJ) \
  62.       gif.$(OBJ) gifdecod.$(OBJ) triangle.$(OBJ) raw.$(OBJ) dump.$(OBJ) \
  63.       targa.$(OBJ) quartics.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ)
  64.  
  65. # DKB-Specific Dependencies
  66. #
  67. dkb.exe : $(DKBOBJS)
  68.     $(LINKER) @ibm.lnk
  69.  
  70. trace.$(OBJ) : trace.c dkbproto.h frame.h vector.h config.h
  71.  
  72. tokenize.$(OBJ) : tokenize.c dkbproto.h frame.h config.h
  73.  
  74. parse.$(OBJ) : parse.c dkbproto.h frame.h config.h
  75.  
  76. render.$(OBJ) : render.c dkbproto.h frame.h vector.h config.h
  77.  
  78. lighting.$(OBJ) : lighting.c dkbproto.h frame.h vector.h config.h
  79.  
  80. prioq.$(OBJ) : prioq.c dkbproto.h frame.h config.h
  81.  
  82. texture.$(OBJ) : texture.c dkbproto.h frame.h vector.h config.h
  83.  
  84. objects.$(OBJ) : objects.c dkbproto.h frame.h vector.h config.h
  85.  
  86. spheres.$(OBJ) : spheres.c dkbproto.h frame.h vector.h config.h
  87.  
  88. planes.$(OBJ) : planes.c dkbproto.h frame.h vector.h config.h
  89.  
  90. quadrics.$(OBJ) : quadrics.c dkbproto.h frame.h vector.h config.h
  91.  
  92. quartics.$(OBJ) : quartics.c dkbproto.h frame.h vector.h config.h
  93.  
  94. vect.$(OBJ) : vect.c dkbproto.h frame.h config.h
  95.  
  96. matrices.$(OBJ) : matrices.c dkbproto.h frame.h vector.h config.h
  97.  
  98. csg.$(OBJ) : csg.c dkbproto.h frame.h vector.h config.h
  99.  
  100. colour.$(OBJ) : colour.c dkbproto.h frame.h config.h
  101.  
  102. viewpnt.$(OBJ) : viewpnt.c dkbproto.h frame.h vector.h config.h
  103.  
  104. ray.$(OBJ) : ray.c dkbproto.h frame.h vector.h config.h
  105.  
  106. iff.$(OBJ) : iff.c dkbproto.h frame.h config.h
  107.  
  108. gif.$(OBJ) : gif.c dkbproto.h frame.h config.h
  109.  
  110. gifdecod.$(OBJ) : gifdecod.c dkbproto.h frame.h config.h
  111.  
  112. raw.$(OBJ) : raw.c dkbproto.h frame.h config.h
  113.  
  114. dump.$(OBJ) : dump.c dkbproto.h frame.h config.h
  115.  
  116. targa.$(OBJ) : targa.c dkbproto.h frame.h config.h
  117.  
  118. triangle.$(OBJ) : triangle.c dkbproto.h frame.h vector.h config.h
  119.  
  120. ibm.$(OBJ) : ibm.c dkbproto.h frame.h config.h
  121.  $(CC) $(CFLAGS) /Ogiltaz /D__STDC__ $*.c
  122.